package com.tencent.ied.bk.filter.impl;


import cn.hutool.core.util.StrUtil;
import com.tencent.ied.bk.entity.BaseAbstractInfo;
import com.tencent.ied.bk.filter.AbstractFilter;

/**
 * @author chen_yu
 * @date 2021/3/11 3:01
 */
public class EmptyFilter extends AbstractFilter {


    public EmptyFilter(String name) {
        super(name);
    }

    @Override
    public boolean doFilter(BaseAbstractInfo filterObject) {
        return StrUtil.isNotEmpty(filterObject.getContent());
    }

}
